require.config({
	baseUrl : '',
	paths : {
		'ng' : 'common/js/vendor/angular',
		'ngResource' : 'common/js/vendor/angular-resource',
		'$' : 'common/js/vendor/jquery',
		'domReady' : 'common/js/vendor/domReady',
		'ui.router' : 'common/js/vendor/angular-ui-router',
		'bootstrap' : 'common/js/vendor/bootstrap',
		'_':'common/js/vendor/lodash',
		'notify' : 'common/js/vendor/bootstrap-notify'
	},
	shim : {
		'ng' : {
			exports : 'angular',
			deps : [ "$","_" ]
		},
		'ngResource' : {
			deps : [ 'ng' ]
		},
		'$' : {
			exports : '$'
		},
		'_':{
			exports : '_'
		}

	}
});
(function() {
	require([ "$", "ng" ], function($, angular) {
		
		var _html = $('html');
		var module = _html.attr("ep-module");
		var file = _html.attr("ep-file");
		require([ file ], function() {
			require([ 'domReady!' ], function(doc) {
				angular.bootstrap(doc, [ module ]);
			});
		});
	});

}());
